import request from '@/utils/request'

// 充电宝下单
export function placeOrderPowerBank(data) {
  return request('/api/order/newOrder', 'GET', { rentBoxSn: data })
}

// 查询是否存在未结束订单
export function checkOutStandOrder() {
  return request('/api/order/existInProgressOrder', 'GET')
}

// 预下单获取prepayId
export function getPrePayId() {
  return request('/api/deposit/newOrderForDeposit', 'GET')
}

// 缴纳押金
export function payDeposit() {
  return request('/api/order/newOrderForDeposit', 'GET')
}

// 申请退还押金
export function refundDeposit() {
  return request('/api/deposit/refundDeposit', 'GET')
}

// 是否已经缴纳押金
export function hasDeposit() {
  return request('/api/deposit/haveDeposit', 'GET')
}

// 查询押金订单列表
export function listDepositOrder() {
  return request('/api/deposit/listDepositOrder', 'GET')
}

// 查询押金金额
export function getQueryDepositAmount() {
   return request('/api/deposit/queryDepositAmount', 'GET')
}

// 查询个人订单列表
export function checkPersonalOrderList() {
  return request('/api/order/listOrder', 'GET')
}